package com.toubutu.audio.admin.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.toubutu.common.AuthLoginUserInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author 戒躁
 * @version 1.0
 * @date 2023年10月22日 11:11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class LoginUserInfo extends AuthLoginUserInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long userId;
    private String nickName;

    private String avatar;

    private Integer gender;
    private String birthday;

    private List<RoleVo> roleList;
    @Override
    public String getId() {
        return this.userId.toString();
    }
    private List<String> permissionList;

    @Override
    @JsonIgnore
    public List<String> getPerssionList() {
        return permissionList;
    }
}
